package week1;

public class lingxing {
    public static void main(String[] args) {
       // L 4~15 打印上面部分：
       int n=4;
       for (int i = 0; i < n; i++) {
           for (int k =3-i; k > 0 ; k--) {
                  System.out.print(" ");
           }
           for (int j = 0; j <=2*i;j++) {
              System.out.print("* ");
           }
           System.out.println();
       }
       // L 17~28 打印下面部分
       n=3;
       for (int i = n; i > 0; i--) {
           for (int k =3-i+1; k > 0 ; k--) {
                  System.out.print(" ");
           }
           for (int j = 0; j <=2*i-2;j++) {
              System.out.print("* ");
           }
           System.out.println();
       }
    }
}
